import BaseService from '../BaseService'
import factory from '../serviceFactory'

class PolicyService extends BaseService {
  /**
   * 政策翻页列表
   * queryPolicyPage({ ... })
   */
  queryPolicyPage = factory.makeGet('/api/policy/queryPolicyPage')

  /**
   * 新增
   * addPolicy({ ... })
   */
  addPolicy = factory.makeJPost('/api/policy/addPolicy')

  /**
   * 新增
   * updatePolicy({ ... })
   */
  updatePolicy = factory.makeJPost('/api/policy/updatePolicy')

  /**
   * 详情
   * detailPolicy({id})
   */
  detailPolicy = factory.makeGet('/api/policy/detailPolicy')

  /**
   * 批量删除
   * batchDelete({ids})
   */
  batchDelete = factory.makePost('/api/policy/batchDelete')
}

export default new PolicyService()
